﻿package sprites {
	import org.flixel.data.FlxPanel;
	import org.flixel.FlxPoint;
	import org.flixel.FlxSprite;

	/**
	 * ...
	 * @author test
	 */
	public class LevelObject extends FlxSprite {
		public var name:String;
		public var properties:Array;
		public var size:FlxPoint;

		public function LevelObject(x:Number = 0, y:Number = 0){
			super(x, y);

		}

		public function setObj(_name:String, _coord:FlxPoint, _size:FlxPoint, _properties:Array):void {
			name = _name;

			//origin.x = 	origin.y = 0;
			size = _size;
			x = _coord.x;
			y = _coord.y;
			width = _size.x;
			height = _size.y;
			properties = _properties;
		}
	}

}